home *** CD-ROM | disk | FTP | other *** search
- 10 'bouree - with comments describing the strings
- 20 A$ = "MB ML L8 T150"
- 30 ' MB = music background - notes are kept in a buffer
- 35 ' that plays in the background while program does other
- 40 ' things
- 50 ' ML = music legato - each note plays full len of time
- 60 ' L8 = default length of note, in this case an 8th
- 70 ' T150 = sets tempo by specifying the number of quarter
- 75 ' notes in a minute
- 80 '
- 90 B$ = "O4 D E F4 E D C+4 D E O3 A4 B O4 C+ D P10"
- 100 ' O4 sets the current octave to 4 (octaves numbered
- 105 ' from 0 to 6)
- 110 ' D and E are eighth notes (the default length), F4
- 115 ' is a quarter note
- 120 ' C+4 is a C sharp quarter note, O3 changes the octave
- 125 ' to 3
- 130 ' P10 is a pause with a length of 10
- 140 '
- 150 C$ = "C O3 B- A4 G F E4 F G A P16 G F16 E16 D8 P10"
- 160 ' B- is B flat, F16 and E16 are sixteenth notes
- 170 '
- 180 D$ = "O4 D E F4 E D A4 F A O3 A4 B O4 C+ D P10"
- 190 E$ = "C O3 B- A4 G F P32 F16 G16 F16 E16 F16. P32 F2"
- 200 ' a . following a note acts just like it does in music,
- 210 ' it plays the note 3/2 times the length indicated.
- 220 '
- 230 ' the following statements "play" the strings defined
- 235 ' above
- 240 '
- 250 PLAY A$
- 260 PLAY B$
- 270 PLAY C$
- 280 PLAY D$
- 290 PLAY E$
- 300 '
- 310 ' if i had used MF (music foreground) instead of MB
- 315 ' (music background),
- 320 ' i wouldn't need the "if inkey$..." statement. with
- 325 ' MB, though, continued next message...
- 330 ' the program ends before the music gets a chance
- 335 ' to play. MB is useful
- 340 ' when you want to set graphics to music.
- 350 IF INKEY$ = "" THEN 350
- 360 '
- 370 ' i like to leave basica at the end of the program,
- 375 ' but left it
- 380 ' commented out.
- 390 'SYSTEM
- 400 END